<div id="content">
	<h3 class="widgettitle"><span><?php echo $this->Html->link('Trang chủ',array('controller'=>'news','action'=>'home'));?> » <?php echo $news[0]['Catenews']['name'];?></span></h3>
	<?php //debug($this);?>
    <div id="content-detail">
	<?php foreach ($news as $news):?>
    	
		<div class="clearfix post">
			 <h2 class="title">
				<?php echo $this->Html->link($this->Text->truncate($news['News']['title'],125), array('action' => 'chitiet',$this->Link->seo($news['News']['id'],$news['News']['title'])),array('class'=> 'link_text_14_xanh_dam','title'=>$news['News']['title'])); ?>
			 </h2>
			 <div class="postmeta-primary"> <span class="meta_date">
				Ngày đăng: <?php echo date('d/m/Y',strtotime($news['News']['ngaydang']));?></span>&nbsp;
	            <!--<span class="meta_categories">
	                <?php // echo $this->Html->link($news['Catenews']['name'],array('controller'=>'news','action'=>'pages',$this->Link->seo($news['Catenews']['id'],$news['Catenews']['name'])),array('title'=>'Xem các tin thuộc mục '.$news['Catenews']['name'],'rel'=>"category tag"));?>
	            </span>-->
    		</div>

			<div class="entry clearfix">
				<a href="<?php echo $this->webroot;?>news/chitiet/<?php echo $this->Link->seo($news['News']['id'],$news['News']['title']);?>" title="<?php echo $news['News']['title'];?>" rel="bookmark">
						<?php if(is_file('files/uploads/news/'.$news['News']['image'])){?>
						<img width="150" src="<?php echo $this->webroot;?>files/uploads/news/<?php echo $news['News']['image'];?>" class="alignleft featured_image" alt="<?php echo $news['News']['image'];?>" title="<?php echo $news['News']['title'];?>">
						<?php }else{?>
							<img width="150" height="130" src="<?php echo $this->webroot;?>img/no-image.jpg" class="alignleft featured_image" alt="<?php echo $news['News']['image'];?>" title="<?php echo $news['News']['title'];?>">
						<?php }?>
				</a>
				<p><?php echo $news['News']['shortcontent'];?></p>
		   
				<div class="readmore">
					<?php echo $this->Html->link("Chi tiết",array('controller'=>'news','action'=>'chitiet',$this->Link->seo($news['News']['id'],$news['News']['title'])),array('title'=> $news['News']['title'],'rel'=>"bookmark"));?>
				</div>
			</div>
            <div class="item-space" style="border-top:#CCC 1px dotted;">
        </div>
		</div>
 	<?php endforeach;?>
    <br />
      <div class="paging">
		<?php echo $this->element("pages");?>
		</div>
      <div align="right" style="height:25px">
    <a href="#main"><img src="<?php echo $this->webroot;?>img/backtop.png"/>&nbsp;Lên đầu trang</a>
    </div>
    </div>
    <!-- .navigation -->
</div>
<?php echo $this->element('news-right');?>
